<?php
class Shop_Model_DbTable_HasCategory extends Zend_Db_Table_Abstract {
	protected $_name ='shop_has_category';
	
	protected $_referenceMap    = array(
        'Category' => array(
            'columns'           => 'category_id',
            'refTableClass'     => 'Shop_Model_DbTable_Category',
            'refColumns'        => 'id',
            'refColumnsAsName'  => 'name',
//			'onDelete'			=> self::CASCADE
        ),
        'Product' => array(
            'columns'           => 'product_id',
            'refTableClass'     => 'Shop_Model_DbTable_Product',
            'refColumns'        => 'id',
            'refColumnsAsName'  => 'name',
//        	'onDelete'			=> self::CASCADE
        )
    );
}